


cd /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud
git checkout devlp
git pull
mvn clean
mvn package -P aLiYunServer -D skipTests




########################## cloud-gateway
echo "Stopping SpringCloud Application for bing.Pan-springCloud:cloud-gateway"
gateway_pid=`ps -ef | grep cloud-gateway-1.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
if [ -n "$gateway_pid" ]
then
  echo "kill -9 的gateway_pid:" $gateway_pid
  kill -9 $gateway_pid
fi
echo "启动cloud-gateway...."
chmod 777 /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-gateway/target/cloud-gateway-1.0-SNAPSHOT.jar
cd /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-gateway/target
java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8890,suspend=n -jar cloud-gateway-1.0-SNAPSHOT.jar &
sleep 25










########################## cloud-zipkin-server
echo "Stopping SpringCloud Application for bing.Pan-springCloud:cloud-zipkin-server"
zipkin_server_pid=`ps -ef | grep cloud-zipkin-server-1.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
if [ -n "$zipkin_server_pid" ]
then
  echo "kill -9 的zipkin_server_pid:" $zipkin_server_pid
  kill -9 $zipkin_server_pid
fi
echo "启动cloud-zipkin-server...."
chmod 777 /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-zipkin-server/target/cloud-zipkin-server-1.0-SNAPSHOT.jar
cd /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-zipkin-server/target
java -jar cloud-zipkin-server-1.0-SNAPSHOT.jar &
sleep 25



########################### member_user
echo "Stopping SpringCloud Application for bing.Pan-springCloud:cloud-member-user"
member_user_pid=`ps -ef | grep cloud-member-user-1.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
if [ -n "$member_user_pid" ]
then
  echo "kill -9 的member_user_pid:" $member_user_pid
  kill -9 $member_user_pid
fi
echo "启动cloud-member-user...."
chmod 777 /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-member-user/target/cloud-member-user-1.0-SNAPSHOT.jar
cd /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-member-user/target
java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8806,suspend=n -jar cloud-member-user-1.0-SNAPSHOT.jar &
sleep 22


########################## member_account
echo "Stopping SpringCloud Application for bing.Pan-springCloud:cloud-member-account"
member_account_pid=`ps -ef | grep cloud-member-account-1.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
if [ -n "$member_account_pid" ]
then
  echo "kill -9 的member_account_pid:" $member_account_pid
  kill -9 $member_account_pid
fi
echo "启动cloud-member-account...."
chmod 777 /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-member-account/target/cloud-member-account-1.0-SNAPSHOT.j
ar
cd /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-member-account/target
java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8805,suspend=n -jar cloud-member-account-1.0-SNAPSHOT.jar &



########################## boss
echo "Stopping SpringCloud Application for bing.Pan-springCloud:cloud-boss"
boss_pid=`ps -ef | grep cloud-boss-1.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
if [ -n "$boss_pid" ]
then
  echo "kill -9 的boss_pid:" $boss_pid
  kill -9 $boss_pid
fi
echo "启动cloud-boss...."
chmod 777 /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-boss/target/cloud-boss-1.0-SNAPSHOT.jar
cd /bing.Pan/applicationSoftware/workspace/bing.Pan-springCloud/cloud-boss/target
java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8807,suspend=n -jar cloud-boss-1.0-SNAPSHOT.jar &

